package service.impl;

import dao.ScheduleDao;
import dao.impl.ScheduleDaoImpl;
import entity.Schedule;
import service.ScheduleService;

import java.util.ArrayList;

public class ScheduleServiceImpl implements ScheduleService {
    private ScheduleDao scheduleDao=new ScheduleDaoImpl();
    @Override
    public String insert(String idNumber, String schedule) throws Exception {
        return scheduleDao.insert(idNumber,schedule);
    }

    @Override
    public ArrayList<Schedule> findSchedule(String idNumber) throws Exception {
        return scheduleDao.findSchedule(idNumber);
    }
}
